package com.cazor.dgjq.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cazor.common.utils.DateUtils;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.cazor.dgjq.mapper.DgjqParamDataSensorMapper;
import com.cazor.dgjq.domain.DgjqParamDataSensor;
import com.cazor.dgjq.service.IDgjqParamDataSensorService;

/**
 * 酒泉传感器数据传输记录Service业务层处理
 *
 * @author cazor
 * @date 2024-05-15
 */
@Service
public class DgjqParamDataSensorServiceImpl extends ServiceImpl<DgjqParamDataSensorMapper, DgjqParamDataSensor> implements IDgjqParamDataSensorService
{
    @Resource
    private DgjqParamDataSensorMapper dgjqParamDataSensorMapper;

    /**
     * 查询酒泉传感器数据传输记录
     *
     * @param id 酒泉传感器数据传输记录主键
     * @return 酒泉传感器数据传输记录
     */
    @Override
    public DgjqParamDataSensor selectDgjqParamDataSensorById(Long id)
    {
        return dgjqParamDataSensorMapper.selectDgjqParamDataSensorById(id);
    }

    /**
     * 查询酒泉传感器数据传输记录列表
     *
     * @param dgjqParamDataSensor 酒泉传感器数据传输记录
     * @return 酒泉传感器数据传输记录
     */
    @Override
    public List<DgjqParamDataSensor> selectDgjqParamDataSensorList(DgjqParamDataSensor dgjqParamDataSensor)
    {
        return dgjqParamDataSensorMapper.selectDgjqParamDataSensorList(dgjqParamDataSensor);
    }

    /**
     * 新增酒泉传感器数据传输记录
     *
     * @param dgjqParamDataSensor 酒泉传感器数据传输记录
     * @return 结果
     */
    @Override
    public int insertDgjqParamDataSensor(DgjqParamDataSensor dgjqParamDataSensor)
    {
        dgjqParamDataSensor.setCreateTime(DateUtils.getNowDate());
        return dgjqParamDataSensorMapper.insertDgjqParamDataSensor(dgjqParamDataSensor);
    }

    /**
     * 修改酒泉传感器数据传输记录
     *
     * @param dgjqParamDataSensor 酒泉传感器数据传输记录
     * @return 结果
     */
    @Override
    public int updateDgjqParamDataSensor(DgjqParamDataSensor dgjqParamDataSensor)
    {
        dgjqParamDataSensor.setUpdateTime(DateUtils.getNowDate());
        return dgjqParamDataSensorMapper.updateDgjqParamDataSensor(dgjqParamDataSensor);
    }

    /**
     * 批量删除酒泉传感器数据传输记录
     *
     * @param ids 需要删除的酒泉传感器数据传输记录主键
     * @return 结果
     */
    @Override
    public int deleteDgjqParamDataSensorByIds(Long[] ids)
    {
        return dgjqParamDataSensorMapper.deleteDgjqParamDataSensorByIds(ids);
    }

    /**
     * 删除酒泉传感器数据传输记录信息
     *
     * @param id 酒泉传感器数据传输记录主键
     * @return 结果
     */
    @Override
    public int deleteDgjqParamDataSensorById(Long id)
    {
        return dgjqParamDataSensorMapper.deleteDgjqParamDataSensorById(id);
    }
}
